import request from'../request.js'

// 登录
export const login = params => {
	return request.get({url: '/v0.1/account/login/', data:params})
}

// 验证码
export const verify = params => {
	return request.get({url: '/v0.1/account/verify/', data:params})
}

// 注册
export const register = params => {
	return request.post({url: '/v0.1/account/register/', data:params})
}

// 登录密码重置
export const loginpasswd = params => {
	return request.post({url: '/v0.1/account/loginpasswd/', data:params})
}

// 获取轮播图
export const appimage = params => {
	return request.get({url: '/v0.1/appman/appimage/', data:params})
}

// 未登录状态下的优惠卷查询
export const getPlateCoupon = params => {
	return request.get({url: '/v0.1/coupon/query/coupon/plate/', data:params})
}

// 自定义订单优惠卷
export const parkingOrderCoupon = params => {
	return request.get({url: '/v0.1/coupon/charging/', data:params})
}

//修改呢称
export const change_nickname = params => {
	return request.put({url: '/v0.1/user/?nickname='+params})
}

// 获取推荐停车场
export const parking_lots = params => {
	return request.get({url: '/v0.1/parking/parking_lots/', data:params})
}

// 获取推荐停车场
export const fetchParkLot = params => {
	return request.get({url: '/v0.1/parking/fetchParking', data:params})
}